<?php
/**
 * Author: yixuan
 * Desc: 易宣系统常量定义文件
 * require_path: 挂载文件路径  application/common.php:21
 * Time: 2016/5/17 10:36
 */
global $_G;
!defined('DOMAIN0') && define('DOMAIN0', $_G['system']['s']['domain0']);
!defined('DOMAIN1') && define('DOMAIN1', $_G['system']['s']['domain1']);
!defined('DOMAIN2') && define('DOMAIN2', $_G['system']['s']['domain2']);
!defined('DOMAIN3') && define('DOMAIN3', $_G['system']['s']['domain3']);
!defined('OLD_SERVER') && define('OLD_SERVER', strpos($_G['system']['s']['domain0'], 'old') ? true : false);
!defined('DOMAIN_YIXUAN') && define('DOMAIN_YIXUAN', empty($_G['system']['s']['domain_yixuan']) ? '' : $_G['system']['s']['domain_yixuan']);
!defined('TIMESTAMP') && define('TIMESTAMP', time());
$_G['TIMESTAMP'] = TIMESTAMP;
!defined('PATH_MODULE') && define('PATH_MODULE', APP_PATH);
!defined('ATTACHMENT_ROOT') && define('ATTACHMENT_ROOT', ROOT_PATH . "attachment/");
!defined('IN_SYS') && define('IN_SYS', true);
!defined('SOFT_VERSION') && define('SOFT_VERSION', empty($_G['system']['version']) ? 'H3.5.2' : $_G['system']['version']);
!defined('YIXUAN_IP') && define('YIXUAN_IP', ',114.55.97.91,47.98.63.60,47.111.89.80,121.199.35.99,121.199.1.26,121.199.6.171,116.62.205.165,118.178.106.126,120.27.133.22,120.26.37.89,120.27.132.218,120.27.135.226,121.199.51.39,121.199.50.189,121.199.51.161,118.31.67.166,112.233.96.224,');

//!defined('PUBLIC_PATH') && define('PUBLIC_PATH', APP_PATH);


!defined('PATH_FONT') && define('PATH_FONT', APP_PATH . "lib/");
!defined('QRURLNEW') && define('QRURLNEW', $_G['siteroot'] . '/' . MODULE_NAME . '/' . $_G['mpid'] . '/0/0/qr.aspx?url=');
$_G['URL']['APP_RESOURCE'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/default/';
$_G['URL']['APP_CSS'] = $_G['URL']['APP_RESOURCE'] . 'css/';
$_G['URL']['APP_JS'] = $_G['URL']['APP_RESOURCE'] . 'js/';
$_G['URL']['APP_IMAGE'] = $_G['URL']['APP_RESOURCE'] . 'images/';
$_G['URL']['APP_RESOURCE_FOX'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/fromfox/';
$_G['URL']['DANMU_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/danmucss/';
$_G['URL']['YIYE_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/weituancss/';
$_G['URL']['DUOSHANGJIA_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/duoshangjia/';
$_G['URL']['LIANMENG_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/lianmeng/';
$_G['URL']['JIAMENG_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/jiameng/';
$_G['URL']['LJJIAMENG_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/lijianduoshangjia/';
$_G['URL']['FANPAI_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/fanpai/';
$_G['URL']['FCPDD_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/fcpdd/';
$_G['URL']['PAYSUCCESS_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/paysuccess01/';
$_G['URL']['YX2020_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/yx2020/';
$_G['URL']['YX2020_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/yx2020/';
$_G['URL']['WORKER_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/yxworker/tempcss/';
$_G['URL']['DAPING_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2019css/yxworker/dapingcss/';
$_G['URL']['FCWORK_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/fcworker/';//待升级为worker2020
$_G['URL']['WORK2020_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/work2020/';
$_G['URL']['HEXIAO_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/hexiao_2021/';
$_G['URL']['REFUND_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/refund/';
$_G['URL']['DAPING_STATIC'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/fcworker/daping2022/';
$_G['URL']['QRURLNEW'] = $_G['siteroot'] . MODULE_NAME . '/0/0/0/qr.aspx?url=';
$_G['URL']['CSS_PATH'] = '';

//插件常量
if (is_dir(PATH_MODULE . 'plugin/core/')) {
    !(defined('YX_PLUGIN_CORE')) && define('YX_PLUGIN_CORE', PATH_MODULE . 'plugin/core/');
} else {
    !(defined('YX_PLUGIN_CORE')) && define('YX_PLUGIN_CORE', PUBLIC_PATH . '/plugin/core/');
}

$_G['URL']['BEILAI_IMG'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/beilai/image';
$_G['URL']['PLUGIN_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/plugin/';
$_G['URL']['EDUCATION_STATIC_PATH'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/education';

!defined('DEVNAME') && define('DEVNAME', str_replace("18900", "devname", MODULE_NAME));
if (in_array(DOMAIN0, ['5.yixuan.net', '6.yixuan.net', '7.yixuan.net', '8.yixuan.net', '9.yixuan.net', '30.yixuan.net']) || DEVNAME == 'yxdevname') {
    !defined('DEV_SERVER') && define('DEV_SERVER', true);
    $_G['URL']['PUBLIC_JS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/public_js/js2022_dev_ouwase/';
} else {
    !defined('DEV_SERVER') && define('DEV_SERVER', false);
    $_G['URL']['PUBLIC_JS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/public_js/js2023/';
}
if (DOMAIN0 == "61.lingze.net" || DOMAIN0 == "90.lingze.net") {
    !defined('LINGZE_SERVER') && define('LINGZE_SERVER', true);
} else {
    !defined('LINGZE_SERVER') && define('LINGZE_SERVER', false);
}
$_G['URL']['LOTTERY_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/plugin/';
$_G['URL']['LAYER_CSS'] = $_G['url_scheme'] . 'css2020.yixuan.net/2020css/layui';

if ($_G['app_web_wxapp'] == 'mobile') {
    if ($_G['system']['s']['domain1'] == 'www.yixuan.net' || $_G['system']['s']['domain0'] == '56.yixuan.net' || $_G['system']['s']['domain0'] == '68.yixuantech.com.cn') {
        $_G['url_scheme'] = "http://";
    }
}
!defined('MODULE_NAME_TABEL') && define('MODULE_NAME_TABEL', MODULE_NAME);
define("t_fake", MODULE_NAME_TABEL . "_afake");
define("t_theme", MODULE_NAME_TABEL . "_atheme");
define("t_record", MODULE_NAME_TABEL . "_arecord");
define("t_fans", MODULE_NAME_TABEL . "_afans");
define("t_reply", MODULE_NAME_TABEL . "_areply");
define("t_share", MODULE_NAME_TABEL . "_ashare");
define("t_order", MODULE_NAME_TABEL . "_aorder");
define("t_group", MODULE_NAME_TABEL . "_agroup");
define("t_worker", MODULE_NAME_TABEL . "_aworker");
define("t_detail", MODULE_NAME_TABEL . "_adetail");
define("t_config", MODULE_NAME_TABEL . "_aconfig");
define("t_comm", MODULE_NAME_TABEL . "_acomm");
define("t_commshare", MODULE_NAME_TABEL . "_acommshare");
define("t_scan", MODULE_NAME_TABEL . "_ascan");
define("t_code", MODULE_NAME_TABEL . "_acode");
define("t_poster", MODULE_NAME_TABEL . "_aposter");
define("t_relation", MODULE_NAME_TABEL . "_arelation");
define("t_shangjia", MODULE_NAME_TABEL . "_ashangjia");
define("t_shangjiagroup", MODULE_NAME_TABEL . "_ashangjiagroup");
define("t_team", MODULE_NAME_TABEL . "_ateam");
define("t_hexiao", MODULE_NAME_TABEL . "_ahexiao");
define("t_shengshi", MODULE_NAME_TABEL . "_area");
define("t_gift", MODULE_NAME_TABEL . "_agift");
define("t_giftgroup", MODULE_NAME_TABEL . "_agiftgroup");
define("t_friend", MODULE_NAME_TABEL . "_afriend");
define("t_exchange", MODULE_NAME_TABEL . "_aexchange");
define("t_fanpaijihui", MODULE_NAME_TABEL . "_afanpaijihui");
define("t_fanpaichoujiang", MODULE_NAME_TABEL . "_afanpaichoujiang");
define("t_workerreport", MODULE_NAME_TABEL . "_aworkerreport");
define("t_log", MODULE_NAME_TABEL . "_alog");
define("t_qrlist", MODULE_NAME_TABEL . "_aqrlist");
define("t_report", "2019report");
define("t_bill", "2019bill_list");
define("t_weixin", "00weixintousu");
define("t_blanklist", "00blanklist");
define("t_baiduip", "00baiduip");
define("t_2019fans", "2019xuni_fans");
define("t_wechatgroup", MODULE_NAME_TABEL . "_awechatgroup");
define("t_lottery", MODULE_NAME_TABEL . "_lt_item");
define("t_receive", MODULE_NAME_TABEL . "_lt_record");
define("t_lot_record", MODULE_NAME_TABEL . "_lt_number_record");
define("t_points_flag", MODULE_NAME_TABEL . "_point_flag");

define("t_bargain_entry", MODULE_NAME_TABEL . "_bargain_entry");
define("t_bargain_flag", MODULE_NAME_TABEL . "_bargain_flag");
define("t_bargain_help_gift", MODULE_NAME_TABEL . "_bargain_help_gift");

//五锦拼霸王
define("koi_list", MODULE_NAME_TABEL . "_koi_list");
define("koi_method", MODULE_NAME_TABEL . "_koi_method");
define("koi_prize", MODULE_NAME_TABEL . "_koi_prize");
define("koi_chance", MODULE_NAME_TABEL . "_koi_chance");
define("koi_flag", MODULE_NAME_TABEL . "_koi_flag");
define("koi_msg", MODULE_NAME_TABEL . "_koi_sub_msg");
define("koi_timeset", MODULE_NAME_TABEL . "_koi_timeset");
//游戏定制
define("game_box", MODULE_NAME_TABEL . "_game_box");
define("game_life", MODULE_NAME_TABEL . "_game_life_flag");
define("game_level", MODULE_NAME_TABEL . "_game_list");
define("game_prize", MODULE_NAME_TABEL . "_game_prize");
define("game_question", MODULE_NAME_TABEL . "_game_question");
define("game_user_box", MODULE_NAME_TABEL . "_game_user_box_flag");
define("game_user_detail", MODULE_NAME_TABEL . "_game_user_detail");
define("game_user_level", MODULE_NAME_TABEL . "_game_user_level_flag");
define("game_user_prize", MODULE_NAME_TABEL . "_game_user_prize_flag");
define("game_level_question", MODULE_NAME_TABEL . "_game_level_question");

//易宣抽奖
define("yx_lt_prize", MODULE_NAME_TABEL . "_new_lt_prize");//奖项奖品表
define("yx_lt_chance", MODULE_NAME_TABEL . "_new_lt_chance");//抽奖机会
define("yx_lt_flag", MODULE_NAME_TABEL . "_new_lt_flag");//中奖记录
define("yx_lt_timeset", MODULE_NAME_TABEL . "_new_lt_timeset");//红包定时领取表
define("yx_lt_rp_flag", MODULE_NAME_TABEL . "_new_lt_rp_flag");//红包发放记录表

define("t_comment", MODULE_NAME_TABEL . "_comment");

//领泽新宝箱
define("yx_lz_prize", MODULE_NAME_TABEL . "_lz_chest");//奖项奖品表
define("yx_lz_flag", MODULE_NAME_TABEL . "_lz_chest_flag");//中奖记录表
define("yx_lz_op_flag", MODULE_NAME_TABEL . "_lz_chest_op_flag");//操作记录
define("yx_lz_chest_entry", MODULE_NAME_TABEL . "_lz_chest_entry");//用户实例


//客户预约
define("plan_shop_config", MODULE_NAME_TABEL . "_plan_shop_config");
define("plan_shoptime_config", MODULE_NAME_TABEL . "_plan_shoptime_config");
define("plan_special_worktimes", MODULE_NAME_TABEL . "_plan_special_worktimes");
define("plan_user_planning", MODULE_NAME_TABEL . "_plan_user_planning");


//商家课程
define("t_shangjia_course", MODULE_NAME_TABEL . "_shangjia_course");
define("t_shangjia_gift", MODULE_NAME_TABEL . "_shangjia_gift");
define("t_shangjia_coupon", MODULE_NAME_TABEL . "_shangjia_coupon");
define("t_shangjia_setting", MODULE_NAME_TABEL . "_shangjia_setting");
define("t_shangjia_address_user_course", MODULE_NAME_TABEL . "_shangjia_address_user_course");
define("t_shangjia_user_gift", MODULE_NAME_TABEL . "_shangjia_user_gift");
define("t_shangjia_user_coupon", MODULE_NAME_TABEL . "_shangjia_user_coupon");
define("t_shangjia_company_info", "shangjia_company_info");
define("t_shangjia_category", MODULE_NAME_TABEL . "_shangjia_category");
define("t_shangjia_course_xn_flag", MODULE_NAME_TABEL . "_shangjia_course_xn_flag");
define("t_clotterylist", MODULE_NAME_TABEL . "_clotterylist");
define("t_clotteryrecode", MODULE_NAME_TABEL . "_clotteryrecode");

//投诉
define("t_complain", "000complain");
//新广告
define("t_ad", MODULE_NAME_TABEL . "_ad");//广告设置表
define("t_ad_user_falg", MODULE_NAME_TABEL . "_user_ad_flag");//用户广告弹窗记录表

//代言
define("t_daiyan_user_refund", MODULE_NAME_TABEL . "_daiyan_user_refund");
define("t_daiyan_user_help", MODULE_NAME_TABEL . "_daiyan_user_help");
define("t_redrain_user_chance", MODULE_NAME_TABEL . "_redrain_user_chance");
define("t_redrain_user_flag", MODULE_NAME_TABEL . "_redrain_user_flag");

//摇一摇多礼品
//中奖记录
define("t_yyy_gifts_flag", MODULE_NAME_TABEL . "_yx_gifts_flag");

//demo
define("t_develop_demo", MODULE_NAME_TABEL . "_develop_demo");


//客资收集表单
define("t_fans_other_form", MODULE_NAME_TABEL . "_fans_other_form");


//用户日志
define("t_userdata_all", MODULE_NAME_TABEL . "_userdata_all");
define("t_userdata_trace", MODULE_NAME_TABEL . "_userdata_trace");
define("t_userdata_record", MODULE_NAME_TABEL . "_userdata_record");
define("t_userdata_relation", MODULE_NAME_TABEL . "_userdata_relation");


//微客
define("wk_info", MODULE_NAME_TABEL . "_wk_info");

define("wk_gift", MODULE_NAME_TABEL . "_wk_gift");
define("wk_gift_group", MODULE_NAME_TABEL . "_wk_gift_group");
define("wk_give_gift_record", MODULE_NAME_TABEL . "_wk_give_gift_record");

define("wk_call_gift", MODULE_NAME_TABEL . "_wk_call_gift");
define("wk_call_gift_group", MODULE_NAME_TABEL . "_wk_call_gift_group");
define("wk_give_call_record", MODULE_NAME_TABEL . "_wk_give_call_record");
define("wk_music", MODULE_NAME_TABEL . "_wk_music");

//异业商家多产品核销
define("sj_mulit_products", MODULE_NAME_TABEL . "_shangjia_products");
define("sj_mulit_products_user_flag", MODULE_NAME_TABEL . "_shangjia_products_user_flag");

define("t_mbxxlog", MODULE_NAME_TABEL . "_mbxxlog");
//广告底部按钮点击记录表
define("t_btm_click_flag", MODULE_NAME_TABEL . "_btm_click_flag");
//易宣优惠券
define("t_yx_coupon", MODULE_NAME_TABEL . "_yx_coupon");
define("t_yx_coupon_user_flag", MODULE_NAME_TABEL . "_yx_user_coupon");
//文本5 用户记录表
define("t_form_five_user_flag", MODULE_NAME_TABEL . "_form_five_user_flag");

//短信发送 用户记录表
define("t_sms_send_flag", MODULE_NAME_TABEL . "_sms_send_flag");
//短信待发送队列表
define("t_sms_wait_send_queue", MODULE_NAME_TABEL . "_sms_wait_send_queue");
//短信发送日志
define("t_sms_send_log", MODULE_NAME_TABEL . "_sms_send_log");
//短信模版
define("t_sms_template", "000_sms_template");
//短信模版日志
define("t_sms_template_log", "000_sms_template_log");
define("t_tts", "000_tts");//语音合成
//短信快捷模版手机号记录
define("t_sms_quick_mobile", "000_sms_quick_mobile");
//短信配置
define("t_sms_config", "000_sms_config");
//新老生数据
define("t_stu_data", MODULE_NAME_TABEL . "_stu_data");
//用户定位记录表
define("t_user_map_loc", MODULE_NAME_TABEL . "_user_map_loc");
//短信金额充值记录
define("t_sms_amount_record", MODULE_NAME_TABEL . "_sms_amount_record");


//礼品表
define("t_intive_gift", "intive_gift");
//配置表
define("t_intive_gift_config", "intive_gift_config");
//礼物记录表
define("t_intive_gift_record", MODULE_NAME_TABEL . "_intive_gift_record");
